Toolbar
Overriding Toolbar Component
You can override the default toolbar by providing Toolbar
via the uiOverrides
prop to ChartReactApp
.
The component exposes the following props:
interface ChartToolbarProps {readonly loadedPercentage?: number;readonly container: Element | null;readonly className?: string; // the above properties are used for the built-in chart toolbarreadonly buttons: ReactElement[]; // built-in chart toolbar buttonsreadonly MainInstrumentComponent?: ComponentType<Record<string, any>>; // instrument selection component, built-in or customreadonly isTradingActive?: boolean;}
Example
Source code: